﻿@model EventPlanner.Models.Evento

@{
    ViewBag.Title = "Editar";
}

<h2>Editar Evento</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Evento</legend>

        @Html.HiddenFor(model => model.EventoID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TipoEntrada)
        </div>
        <div class="editor-field">
            @Html.DropDownList("TipoEntrada", "seleccione..")
            @Html.ValidationMessageFor(model => model.TipoEntrada)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Ciudad)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Ciudad)
            @Html.ValidationMessageFor(model => model.Ciudad)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Direccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FechaHora)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaHora)
            @Html.ValidationMessageFor(model => model.FechaHora)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OrganizadorID, "Organizador")
        </div>
        <div class="editor-field">
            @Html.DropDownList("OrganizadorID", String.Empty)
            @Html.ValidationMessageFor(model => model.OrganizadorID)
        </div>

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver atrás", "ListaUsuario")
</div>
